﻿<UserControl x:Class="ApplicationHost.Views.DockView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:prism="http://www.codeplex.com/prism"
             xmlns:inf="clr-namespace:Infrastructure;assembly=Infrastructure"
             xmlns:inf_int="clr-namespace:Infrastructure.InteractionRequests;assembly=Infrastructure"
             mc:Ignorable="d" 
             d:DesignHeight="720" d:DesignWidth="900" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <UserControl.Resources>
        <Style x:Key="outlookBarStyle"  TargetType="telerik:RadOutlookBarItem">
            <!--<Setter Property="HeaderTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock Text="{Binding Header}" FontWeight="Bold"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
            
            <Setter Property="TitleTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <Image Source="{Binding LargeIcon}" Stretch="None" VerticalAlignment="Center" />
                            <TextBlock Text="{Binding Title}" FontWeight="Bold" VerticalAlignment="Center" Margin="5,0,0,0"/>
                        </StackPanel>
                    </DataTemplate>
                </Setter.Value>
            </Setter>-->
            <Setter Property="Icon" Value="{Binding LargeIcon}"/>
            <Setter Property="SmallIcon" Value="{Binding LargeIcon}" />
            <Setter Property="Header" Value="{Binding Header}"/>
            <Setter Property="Title" Value="{Binding Title}"/>
            <!--<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />-->
        </Style>
    </UserControl.Resources>
    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <!--<ContentControl Grid.ColumnSpan="2"
                                Name="userControlRegion" prism:RegionManager.RegionName="{x:Static inf:RegionNames.UserControlRegion}" 
                                Margin="5"/>-->

        <telerik:RadMenu Grid.ColumnSpan="2"  Name="radMenu1" prism:RegionManager.RegionName="{x:Static inf:RegionNames.MenuRegion}">

        </telerik:RadMenu>

        <!--<telerik:RadOutlookBar Name="radOutlookBar1" prism:RegionManager.RegionName="{x:Static inf:RegionNames.NavigationRegion}"
                                       Grid.Row="1"
                                       Width="200"
                                       MinimizedButtonContent="{Binding RelativeSource={RelativeSource Self}, Path=SelectedItem.Header}"
                                       ItemContainerStyle="{StaticResource outlookBarStyle}" Margin="0,5,5,5" SelectedIndex="0" ActiveItemsCount="5" AllowDragReorder="True"
                                       >
                </telerik:RadOutlookBar>-->

        <Border Grid.Column="1" Grid.Row="1"  Margin="5" 
                    BorderBrush="#FFD6D6D6"  BorderThickness="2" CornerRadius="4" Padding="2">
            <!--<ScrollViewer>-->
                <Frame 
                    Name="contentRegion" prism:RegionManager.RegionName="{x:Static inf:RegionNames.ContentRegion}"/>
            <!--</ScrollViewer>-->
        </Border>
    </Grid>
</UserControl>